//
//  HOTUserInfo.h
//  Genpara
//
//  Created by AndyChang.zhang on 14-9-19.
//  Copyright (c) 2014年 zhangchh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HOTUserInfo : NSObject

+(instancetype)defaultUser;

@property(nonatomic,copy)NSString *userId;
@property(nonatomic,copy)NSString *token;
@property(nonatomic,copy)NSString *nick;
@property(nonatomic,copy)NSString *email;
@property(nonatomic,copy)NSString *pwd;
@property(nonatomic,copy)NSString *sex;
@property(nonatomic,copy)NSString *birth;
@property(nonatomic,copy)NSString *city_id;
//@property(nonatomic,copy)NSString *dist_id;
@property(nonatomic,copy)NSString *blood;
@property(nonatomic,copy)NSString *health;
@property(nonatomic,copy)NSString *job_id;
@property(nonatomic,copy)NSString *job_name;
@property(nonatomic,copy)NSString *self_intro;//个人介绍
@property(nonatomic,copy)NSString *certification;// 持有资格
@property(nonatomic,copy)NSString *rate; //评分
@property(nonatomic,copy)NSString *follow_sum;//关注人数
@property(nonatomic,copy)NSString *district;//市区町村
@property(nonatomic,strong)NSArray *menuList;
@property(nonatomic,copy)NSString *push_token;

-(void)resgistWithId:(NSString *)uId token:(NSString *)token;
/**
 *  是否已经登陆
 *
 *  @return
 */
-(BOOL)isLogined;

/**
 *  是否自动登陆
 *
 *  @return
 */
-(BOOL)isAutoLogin;

/**
 *  登陆时调用 保存用户基本信息
 *
 *  @param dic
 */
-(void)loginWithDic:(NSDictionary *)dic withAutologin:(BOOL)autologin;

-(void)save;

-(NSString *)bloodName;

-(NSString *)bloodNameWithId:(NSString *)bloodId;

-(NSString *)cityName;
-(NSString *)cityNameWithId:(NSString *)cityid;

-(NSString *)jobName;
-(NSString *)jobNameWithId:(NSString *)jobId jobName:(NSString *)jobName;

-(NSString *)certificationName;
-(NSString *)certificationNameWithId:(NSString *)cid;

-(NSString *)healthName;
-(NSString *)healthNameWithId:(NSString *)hid;

-(NSString *)sexName;
-(NSString *)sexNameWithId:(NSString *)sid;
@end
